import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;


public class FileReaderDemo {
	public static void main(String[] args) throws IOException{
		Reader reader =new FileReader("D\\workspace\\JavaProExample9\\src\\1.txt");
		Writer writer =new  FileWriter("D\\workspace\\JavaProExample9\\src\\3.txt");
		char[] chars =new char[1024];
		int len = reader.read(chars);
		//for(int i=0;i<len;i++){
			//System.out.println(chars[i]);
		writer.write(chars,0,len);
		reader.close();
		writer.close();
		}
	}


